<?php
$movieName=$_POST['name'];
$movieYear=$_POST['year'];

$addSql="insert into movies(Title,Year) value('$movieName','$movieYear')";

$mysqli = new mysqli("localhost", "root", "", "movie");
$res = mysqli_query($mysqli, $addSql);
$mysqli->close();

//echo $addSql;
echo '添加成功'

?>
